package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_l_ck_travel", desc = "游历日志", autoSave = true, uploadCk = true)
public class LogTravel extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "游历次数")
    private int travelTimes;
    @FieldTypeAnnotation(desc = "目的地id")
    private int cityId;
    @FieldTypeAnnotation(desc = "事件id")
    private int eventId;
    @FieldTypeAnnotation(desc = "奖励")
    private String reward;

    public LogTravel(long userId, int travelTimes, int cityId, int eventId, String reward) {
        this.userId = userId;
        this.travelTimes = travelTimes;
        this.cityId = cityId;
        this.eventId = eventId;
        this.reward = reward;
    }

    public long getUserId() {
        return userId;
    }

}
